﻿using System.Web.Mvc;
using Facebook.Web;
using Facebook.Web.Mvc;
using GermaneShanidze.Applications.Jokeri.ServerSide.Models;

namespace GermaneShanidze.Applications.Jokeri.ServerSide.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        [CanvasAuthorize(Permissions = "user_about_me")]
        public ActionResult Index()
        {

            var model = new FacebookToSilverlightViewModel
            {
                FbSessionKey = FacebookWebContext.Current.AccessToken
            };

            return View(model);
        }
    }
}